# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=mpv-mpris
pkgver=1.1
pkgrel=0
pkgdesc="MPRIS plugin for mpv"
url="https://github.com/hoyon/mpv-mpris"
arch="all"
license="MIT"
depends="mpv"
makedepends="glib-dev mpv-dev"
checkdepends="
	mpv
	playerctl
	sound-theme-freedesktop
	bash
	dbus
	xvfb-run
	xauth
	jq
	socat
	gawk
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/hoyon/mpv-mpris/archive/$pkgver.tar.gz"

build() {
	make
}

check() {
	make test
}

package() {
	install -Dm 0644 mpris.so "$pkgdir"/etc/mpv/scripts/mpris.so
}

sha512sums="
81622e5e34a8ebde735c39a1615569c833d6cf53c70b4f77794788fd8b19982cc33a71ff5768027826dafc608fa72a089e38c0925a907fa249f5c527d17f9541  mpv-mpris-1.1.tar.gz
"
